home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.5 KB  |  66 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 10:50 PM
  3.     Notification.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1989-90
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT Notification;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingNotification}
  21. {$SETC UsingNotification := 1}
  22.  
  23. {$I+}
  24. {$SETC NotificationIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$IFC UNDEFINED UsingOSUtils}
  30. {$I $$Shell(PInterfaces)OSUtils.p}
  31. {$ENDC}
  32. {$SETC UsingIncludes := NotificationIncludes}
  33.  
  34. CONST
  35. nmType = 8;
  36.  
  37. TYPE
  38. NMRecPtr = ^NMRec;
  39. NMRec = RECORD
  40.     qLink: QElemPtr;        {next queue entry}
  41.     qType: INTEGER;         {queue type -- ORD(nmType) = 8}
  42.     nmFlags: INTEGER;       {reserved}
  43.     nmPrivate: LONGINT;     {reserved}
  44.     nmReserved: INTEGER;    {reserved}
  45.     nmMark: INTEGER;        {item to mark in Apple menu}
  46.     nmIcon: Handle;         {handle to small icon}
  47.     nmSound: Handle;        {handle to sound record}
  48.     nmStr: StringPtr;       {string to appear in alert}
  49.     nmResp: ProcPtr;        {pointer to response routine}
  50.     nmRefCon: LONGINT;      {for application use}
  51.     END;
  52.  
  53.  
  54. FUNCTION NMInstall(nmReqPtr: NMRecPtr): OSErr;
  55.     INLINE $205F,$A05E,$3E80;
  56. FUNCTION NMRemove(nmReqPtr: NMRecPtr): OSErr;
  57.     INLINE $205F,$A05F,$3E80;
  58.  
  59.  
  60. {$ENDC}    { UsingNotification }
  61.  
  62. {$IFC NOT UsingIncludes}
  63.     END.
  64. {$ENDC}
  65.  
  66.